package cn.wolfcode.shop.cloud.vo;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;


@Getter
@Setter
public class LoginVO {
    @Pattern(regexp ="1[3456789]\\d{9}" ,message = "手机号格式不正确")
    private String username;

    @NotEmpty(message = "密码不能为空")
    private String password;

}
